let python_highlight_all = 1

" au Filetype go,javascript,python,vim,shell,ruby,c,css,html setlocal synmaxcol=200

autocmd FileType python syn keyword pythonDecorator True None False self
autocmd BufNewFile,BufRead *.jinja set syntax=htmljinja
autocmd BufNewFile,BufRead *.mako set ft=mako

" autocmd FileType python map <buffer> F :set foldmethod=indent<cr>
autocmd FileType python set cindent
autocmd FileType python set cinkeys-=0#
autocmd FileType python set indentkeys-=0#

" quick quit
autocmd FileType help nnoremap <buffer> <silent> gq :close<cr>
autocmd FileType qf nnoremap <buffer> <silent> gq :cclose<cr>:lclose<cr>
autocmd FileType git nnoremap <buffer> <silent> gq :close<cr>
autocmd FileType vim nnoremap <buffer> <silent> gq :bd!<cr>
autocmd FileType netrw nnoremap <buffer> <silent> gq :close<cr>
autocmd FileType fugitive nnoremap <buffer> <silent> gq :q<cr>
autocmd FileType gitcommit nnoremap <buffer> <silent> gq :wq<cr>
autocmd FileType agrep nnoremap <buffer> <silent> gq :q<cr>

" for vim-commentary
autocmd FileType python,shell,coffee set commentstring=#\ %s
autocmd FileType java,cpp set commentstring=//\ %s

